
package org.testis.testdriver;

/**
 * An interface TestIterator as the abstract class of the Iterator Design Pattern
 
 * 
 * @author barisergun
 */
public interface TestIterator {

    /**
     * This method is used to init the Iterator object. 
     *      
     */
    public void init ();
    
    /**
     * This method is used to iterate to the next element
     *      
     */
    public void next ();
        
    /**
     * This method is used to iterate to the previous element
     *      
     */
    public void previous ();

     /**
     * This method is used to check if the Iteration is at the end?
     
     * @return boolean returns true if the Iteration is at the end
     */
    public boolean isDone ();

     /**
     * This method is used to get current TestPart on the Iteration.
     
     * @return TestPart returns the current TestPart
     */
    public TestPart currentItem ();
    
    
}

